package com.wlb365.financing.modules.trade.service.impl;

import com.google.common.collect.Maps;
import com.wlb365.financing.common.utils.SdkHelper;
import com.wlb365.financing.modules.trade.request.audit.QueryAuditListReq;
import com.wlb365.financing.modules.trade.response.audit.QueryAuditListResult;
import com.wlb365.financing.modules.trade.service.IAuditService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 审核服务实现类.
 *
 * @author zwh
 * @version 1.0
 */
@Service
public class AuditServiceImpl implements IAuditService {
    @Override
    public QueryAuditListResult list(String businessId) {
        Map<String, Object> params = Maps.newHashMap();
        params.put("businessId", businessId);
        QueryAuditListReq req = new QueryAuditListReq();
        req.setBizModel(params);

        return SdkHelper.execute(req);
    }
}
